var Log=Log||{};
fastCSharp.Copy(Log,{
LoadPoll:function()
	{
	fastCSharp.Poll.Query.IsFocus=1;
	fastCSharp.Poll.Query.FocusId=fastCSharp.PageView.SkinValue.SkinValue.logId;
	if(!this.IsPoll)
		{
		fastCSharp.Poll.OnMessage.Add(fastCSharp.ThisFunction(this,this.OnPoll));
		this.IsPoll=1;
		}
	},
OnPoll:function(Value)
	{
	if((Value=Value.Focus)&&Value.length)
		{
		var Poll=fastCSharp.PageView.SkinValue.currentUser.Poll;
		Poll.SkinValue.NewLogs=Value.concat(Poll.SkinValue.NewLogs);
		Poll.IsNoticeMessage.Set(1);
		}
	},
ShowNewLog:function()
	{
	var LogId=fastCSharp.Poll.Query.FocusId;
	if(LogId)	LoadAjax.Post(null,'user.VisitLog',{logId:LogId});
	var SkinValue=fastCSharp.PageView.SkinValue,Logs=SkinValue.logs,Poll=SkinValue.currentUser.Poll;
	Logs.Set(Poll.SkinValue.NewLogs.concat(Logs.SkinValue));
	Poll.NewLogs.Set([]);
	Poll.IsNoticeMessage.Set(0);
	Poll.NewFocusCount.Set(0);
	}
		});
fastCSharp.OnLoad(Log.LoadPoll,Log,1);
